]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
st: Fix painting unblurred texture
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 17 Dec 2020 05:05:03 +0000 (02:05 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 17 Dec 2020 14:15:05 +0000 (11:15 -0300)
ClutterActorBox encapsulates (x1, y1, x2, y2), but the
second pair of values to the texture node are width and
height, leading to incorrectly rendering the unblurred
texture.

Fix that by properly making these values be x2 and y2.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3497

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1542>

src/st/st-private.c

index 8387bbc8df260e11a3918ed1c1a76385c3339494..4d8952f5eb296a9d2ab4b09f294d237b82c61721 100644 (file)
@@ -443,7 +443,8 @@ _st_create_shadow_pipeline (StShadow    *shadow_spec,
   clutter_paint_node_add_rectangle (texture_node,
                                     &(ClutterActorBox) {
                                       half, half,
-                                      src_width, src_height,
+                                      src_width + half,
+                                      src_height + half,
                                     });
 
   paint_context =